package com.service.single.example.thread;

/**
 * 异步线程
 */
public class AsyncThread {


    public static void main(String[] args) throws InterruptedException {
        MyThread myThread = new MyThread();
        System.out.println("线程开始运行 " + Thread.currentThread().getName());
        myThread.start();
        Thread.sleep(1000);
        myThread.interrupt();
    }
}
